home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_60577.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  26 lines

  1. -- card: 60577 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. and 'private' labels limit access to the members and thus define the interface to objects of 'class' type.  The 'friend' specifier gives further control over member scope.
  11.  
  12. Current versions of C++ allows pointers to member functions, a feature not yet implemented in Think C 4.0.
  13.  
  14. With version 2.0, C++ offers "multiple inheritance", where a derived class may inherit members from more than one base class.
  15.  
  16. C++ also offers several advances over ANSI C which are not directly related to object-oriented programming, as follows:
  17.  
  18. In C++ declarations may occur anywhere within a function, rather than preceding all executable statements as in ANSI C.  This encourages the declaration of variables immediately prior to their point of use.
  19.  
  20. C++ provides function and operator "overloading"; that is, a function or operator may be defined to operate in a way which depends upon the context in which it is used.
  21.  
  22.  
  23.  
  24. -- part contents for background part 7
  25. ----- text -----
  26. 219